package graphic.primitives.general;

import java.awt.Color;

/**
 *
 * @author Tomas Zima
 */
public class Background extends GraphicObject implements IGraphicObject
{
	public Background(int x, int y, int w, int h)
	{
		super(x, y);
		setWH(w, h);
	}
	
	public final void setWH(int w, int h)
	{
		this.w = w;
		this.h = h;
	}

	@Override
	public void redraw()
	{
		for (int i = 0; i < w; i++)
		{
			mainWindow.line(x + i, y - h, x + i, y);
		}
	}
	
	private int w;
	private int h;
}
